package com.baizhi.dao;

import com.baizhi.entity.User;
import org.apache.ibatis.annotations.Param;

import javax.validation.constraints.Max;
import java.util.List;
import java.util.Map;

public interface UserDao {
    List<User> selectAllUser(@Param("offset") int offset, @Param("limit") int limit,@Param("userName") String userName);
    int selectCount(@Param("userName")  String userName);
    int insertUser(User user);
    User selectOneUser(String userName);
    int updateUser(User user);
    //查找男女性别
    List<Map> selectBySex();
    //批量添加
    int add(List<User> list );
    //查找省份对应的人数
    List<Map> selectByProvince();
    //
    int selectByDayCount(@Param("max") Integer max,@Param("min") Integer min);

  }
